package com.hongyu.smart.village.ui.fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.Nullable;

import com.hongyu.smart.village.R;
import com.hongyu.smart.village.VillageApp;
import com.hongyu.smart.village.event.Event;
import com.hongyu.smart.village.model.response.UserLoginResp;
import com.hongyu.smart.village.ui.activity.MyFamilyActivity;
import com.hongyu.smart.village.ui.base.BaseFragment;

import butterknife.BindView;
import butterknife.OnClick;

public class MyFragment extends BaseFragment {
    @BindView(R.id.iv_avator)
    ImageView ivAvator;

    @BindView(R.id.tv_name)
    TextView tvName;


    @BindView(R.id.tv_author)
    TextView tvAuthor;
    @Override
    protected View getContentView(LayoutInflater inflater, @Nullable ViewGroup container) {
        return inflater.inflate(R.layout.fragment_my, container, false);
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initData() {

        tvName.setText(resp.getNickname());

    }

    @Override
    protected void onEventProcess(Event event) {

    }
    @OnClick({R.id.layout_myfamily})
    public  void  onClick(View view){
        int id=view.getId();
        switch (id){
            case R.id.layout_myfamily:
                sendIntent(MyFamilyActivity.class);
                break;
        }
    }
}
